﻿<?php
$this->lang->load('template');
$this->load->helper('text');
//$this->lang->load('validation');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0042)http://www.fav365.com/ball/?m=admin&c=good -->
<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Expires content=0>
<LINK href="/css/admin.css" 
type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3395" name=GENERATOR>
<script src="/js/global.js" type="text/javascript"></script>
</HEAD>
<BODY>
<DIV class=admin_box>
  <DIV class=admin_boxtop></DIV>
  <DIV class=admin_boxmain>
	<?=form_open('guestbooks/remove','onSubmit="return checks();"');?>
      <TABLE cellSpacing=1 cellPadding=0 width="100%" align=center border=0>
      <input type="hidden" class="button" name="redirect" value="<?=site_url('guestbooks/admin')?>" />
        <TBODY>
          <TR>
            <TD><H1 class=title>
            <?=$this->lang->line('tpl_guestbooks').$this->lang->line('tpl_lists')?>
            </H1></TD>
          </TR>
        </TBODY>
      </TABLE>
      <TABLE class=table cellSpacing=1 cellPadding=5 width="100%" align=center border=0 id="checkList">
        <TBODY>
          <TR class=tr2 align=middle>
            <TD class=tdbg width="10%"><?=$this->lang->line('tpl_selected')?></TD>
            <TD class=tdbg width="15%"><DIV align=center><strong><?=$this->lang->line('tpl_gb_topic')?></strong></DIV></TD>
            <TD class=tdbg width="30%"><DIV class=STYLE3 align=center><DIV align=center><?=$this->lang->line('tpl_gb_content')?></DIV></DIV></TD>
            <TD class=tdbg width="10%"><DIV class=STYLE3 align=center><DIV align=center><?=$this->lang->line('tpl_gb_author')?></DIV> </DIV></TD>
            <TD class=tdbg width="15%"><DIV class=STYLE3 align=center><DIV align=center><?=$this->lang->line('tpl_gb_date')?></DIV> </DIV></TD>
            <TD class=tdbg width="10%"><DIV class=STYLE3 align=center><DIV align=center>是否已回复</DIV></DIV></TD>
            <TD class=tdbg width="20%"><DIV align=center><STRONG><?=$this->lang->line('tpl_actions')?></STRONG></DIV></TD>
          </TR>
          <?php 
		foreach($res['resultset'] as $key=>$value){
    ?>
          <TR>
            <TD class=tr2 width="10%" align="center">
			<INPUT type=checkbox value=<?=$value['id']?> name=id[] onClick="sets(this)">
			</TD>
            <TD class=tr2 width="15%"><DIV align=center><STRONG>
				<?php 
					if(strlen($value['topic']) > 17)
					{
						$topic = substr($value['topic'], 0, 16);
						$topic = $topic."...";
					}
					else
					{
						$topic =  $value['topic'];
					}
				 ?>
                <a href="#" title="<?=$value['topic']?>" style="text-decoration:none;color:gray;cursor:default"><?=$topic?></a>
                </STRONG></DIV></TD>
				<?php 
						if(strlen($value['content']) > 51)
						{
							$content = substr($value['topic'], 0, 50);
							$content = $content."...";
						}
						else
						{
							$content =  $value['content'];
						}
						
				?>
			<TD class=tr2 width="30%" nowrap="nowrap"><DIV class=STYLE1 align=center><DIV style="text-align:left;text-indent:15px"><a href="#" title="<?=$value['content']?>" style="text-decoration:none;color:gray;cursor:default"><?=$content?></a> </DIV></DIV></TD>
            <TD class=tr2 width="10%"><DIV class=STYLE3 align=center>
                <DIV align=center>
                  <?=$value['guest_name']?>
                </DIV>
              </DIV></TD>
            <TD class=tr2 width="15%" nowrap="nowrap"><DIV class=STYLE3 align=center>
                <DIV align=center>
                  <?=$value['create_on']?>
                </DIV>
              </DIV></TD>
            <TD class=tr2 width="10%"><DIV class=STYLE3 align=center>
                <DIV align=center>
                  <?=$value['is_replay']?$this->lang->line('tpl_yes'):$this->lang->line('tpl_no');?>
                </DIV>
              </DIV></TD>
            <TD class=tr2 width="20%"><DIV align=center><STRONG> <A href="<?=site_url(array('guestbooks','view',$value['id']));?>"><?=$this->lang->line('tpl_gb_view')?></A> </STRONG></DIV></TD>
          </TR>
          <?php
		}
	?>
          <TR class=tr_fff >
            <TD align=left colSpan=10 >
			<INPUT class=btn onClick="CheckAll('checkList',true)" type=button value="<?=$this->lang->line('tpl_selectall')?>">
              <INPUT class=btn onClick="CheckAll('checkList',false)" type=button value="<?=$this->lang->line('tpl_cancel')?>">
              <INPUT class=btn  type="submit" value="<?=$this->lang->line('tpl_act_remove')?>">
			  <?php if(isset($res['pager'])){ echo '<span class="msdn">'.$res['pager']->create_links().'</span>';}?>
            </TD>
          </TR>
		
        </TBODY>
      </TABLE>
    </FORM>
  </DIV>
  <DIV class=admin_boxbottom> </DIV>
</DIV>
</BODY>
</HTML>
